package cn.clwxy.gdz.dao;

import cn.clwxy.gdz.util.BaseDao;

public class TeacherSubjectDaoImpl extends BaseDao implements TeacherSubjectDao{

	@Override
	public int addTeacherSubject(Integer teacherId, Integer subjectId) {
		String sql="INSERT INTO teachersubjectrelative(teacherId,subjectId)value(?,?)";
		return super.update(sql, teacherId,subjectId);
	}

	@Override
	public int deleteTeacherSubject(Integer teacherId, Integer subjectId) {
		String sql="DELETE FROM teachersubjectrelative WHERE teacherId=? AND subjectId=?";
		return super.update(sql, teacherId,subjectId);
	}

}
